package com.miyu.rabbitmq.config;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class MqVo implements Serializable {
    private static final long serialVersionUID = -3630888028848412302L;

    /**
     * 交换机类型(0:DIRECT直连交换机; 1:TOPIC主题交换机; 2:FANOUT扇形交换机; 3:HEADERS头交换机)
     */
    @ApiModelProperty(value = "交换机类型(0:DIRECT直连交换机; 1:TOPIC主题交换机; 2:FANOUT扇形交换机; 3:HEADERS头交换机)")
    private String exchangeType;

    /**
     * 交换机名称
     */
    @ApiModelProperty(value = "交换机名称")
    private String exchangeName;

    /**
     * 队列名称
     */
    @ApiModelProperty(value = "队列名称")
    private String queueName;

    /**
     * 绑定关系
     */
    @ApiModelProperty(value = "绑定关系")
    private String binding;

    /**
     * 是否死信队列(0:是;1:否)
     */
    @ApiModelProperty(value = "是否死信队列(0:是;1:否)")
    private String delayType;

    /**
     * 操作类型（0:新增; 1:删除）
     */
    @ApiModelProperty(value = "操作类型（0:新增; 1:删除）")
    private int type;
}
